/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-09-05 09:41:53
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-10-11 10:39:09
 * @FilePath: /react18-vite-admin/src/api/my.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { MyInfo } from '@/typings/api/my';
import { service } from '@/service/app/useRequest';

export const readMyInfo = () => {
    return service<HttpResult<MyInfo>>({
        url: '/admin/api/my/info',
        method: 'get'
    }).then((res) => {
        return res.data;
    });
};
